package com.gy.def.dataobject;

import com.fasterxml.jackson.annotation.JsonIgnore;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.hibernate.annotations.DynamicInsert;
import org.hibernate.annotations.DynamicUpdate;

import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;

@Data
@Entity
@DynamicUpdate
@DynamicInsert
@ApiModel(value = "信息表")
public class MessageTable {

  @Id
  @GeneratedValue(strategy = GenerationType.IDENTITY)
  private String messageId;

  @ApiModelProperty(value = "消息内容", example = "内容")
  private String messageText;

  @ApiModelProperty(value = "消息标题", example = "震惊！某程序员在厕所竟然...")
  private String messageTitle;

  private int isDelete;

  @JsonIgnore
  private String createTime;
}
